.class Lcom/waiqin365/lightapp/dailyreport/be;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->j:Ljava/util/ArrayList;

    if-eqz v1, :cond_1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;Ljava/util/ArrayList;)V

    :cond_1
    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->k:Ljava/util/HashMap;

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Ljava/util/HashMap;->size()I

    move-result v2

    if-lez v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->a(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;Ljava/util/HashMap;)V

    :cond_2
    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->f:Ljava/util/HashMap;

    iget-object v4, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->g:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_3
    :goto_1
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_6

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_5

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_4

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/ArrayList;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v1

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_4
    invoke-virtual {v4, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    if-eqz v1, :cond_3

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lez v3, :cond_3

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/ArrayList;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v1

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    :cond_5
    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->h(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    :cond_6
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->i(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/i;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->h:Ljava/util/HashMap;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/i;->b(Ljava/util/HashMap;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->i(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/i;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/x;->i:Ljava/util/HashMap;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/dailyreport/view/i;->c(Ljava/util/HashMap;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->i(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/i;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/i;->notifyDataSetChanged()V

    goto/16 :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ai;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ai;->f:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ai;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->j(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Z

    move-result v1

    if-nez v1, :cond_8

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->k(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->l(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_7

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->m(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/16 v2, 0x64

    if-ge v1, v2, :cond_9

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->l(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :goto_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->k(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->k(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2, v0}, Ljava/util/ArrayList;->addAll(ILjava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->b()V

    goto/16 :goto_0

    :cond_7
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->m(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->l(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    goto :goto_2

    :cond_9
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->l(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_3

    :pswitch_2
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->n(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/be;->a:Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;->n(Lcom/waiqin365/lightapp/dailyreport/SearchDailyReportActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v3, v0}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0xd
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
